import pygame


class Porsche:
    """管理保时捷的类"""
    def __init__(self, my_car):
        """初始化飞船并设置其初始位置"""
        self.screen = my_car.screen
        self.screen_rect = my_car.screen.get_rect()
        self.image = pygame.image.load('Porsche 911 Carrera 1998.bmp')
        self.rect = self.image.get_rect()
        self.rect.center = self.screen_rect.center

    def blitime(self):
        """在在指定位置绘制飞船"""
        self.screen.blit(self.image, self.rect)

